package one.stand.fallback;

import com.jmp.base.dto.*;
import com.jmp.feign.SunCodeFeign;
import one.stand.model.ResultModel;
import org.springframework.stereotype.Component;

@Component
public class SunCodeFallback implements SunCodeFeign {
    @Override
    public ResultModel<SunCodeGoodsResponse> goods(SunCodeGoodsRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<SunCodeCardResponse> card(SunCodeCardRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<SunCodeCardResponse> company(SunCodeCompanyRequest request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel delete(SunCodeDeleteRequest request) {
        return ResultModel.faultTolerant();
    }
}
